package com.jsh.erp.api;

import com.jsh.erp.service.supplier.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("/remote/api/supplier")
public class SupplieApi {
  @Autowired
  private SupplierService supplierService;

    @GetMapping("/updateAdvanceIn")
    public int updateAdvanceIn(@RequestParam("supplierId") Long supplierId, @RequestParam("advanceIn") BigDecimal advanceIn)throws Exception{
        return supplierService.updateAdvanceIn(supplierId, advanceIn);
    }
}
